package com.xyebank.ledger.service.nx.sche;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xyebank.ledger.anon.MigTaskComponent;
import com.xyebank.ledger.enums.LedgerJobType;
import com.xyebank.ledger.service.common.MigServiceAdapter;
import com.xyebank.ledger.service.nx.adaper.NXServiceAdapter;
import com.xyebank.ledger.vo.deal.LNxCashPaymentInfoVo;

@Component
@MigTaskComponent(type = "nx_pay_")
public class NXPayMigService extends MigServiceAdapter<LNxCashPaymentInfoVo> {

    @Autowired
    NXServiceAdapter nxServiceAdapter;

    @Override
    public Integer deal(Integer fromIdx, List list, LedgerJobType jobType) {
        return nxServiceAdapter.dealPayment(fromIdx, list, LedgerJobType.MIGRATE);
    }

}
